package com.example.contextcube.model;

/**
 * 单词数据模型
 */
public class Word {
    private String word;        // 单词
    private String phonetic;    // 音标
    private String definition;  // 英文释义
    private String translation; // 中文翻译
    private boolean isFavorite; // 是否收藏

    public Word() {
    }

    public Word(String word, String phonetic, String definition, String translation) {
        this.word = word;
        this.phonetic = phonetic;
        this.definition = definition;
        this.translation = translation;
        this.isFavorite = false;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getPhonetic() {
        return phonetic;
    }

    public void setPhonetic(String phonetic) {
        this.phonetic = phonetic;
    }

    public String getDefinition() {
        return definition;
    }

    public void setDefinition(String definition) {
        this.definition = definition;
    }

    public String getTranslation() {
        return translation;
    }

    public void setTranslation(String translation) {
        this.translation = translation;
    }
    
    public boolean isFavorite() {
        return isFavorite;
    }
    
    public void setFavorite(boolean favorite) {
        isFavorite = favorite;
    }
} 